/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 17655
 * Date: 2025-05-17
 * Time: 16:15
 */
public class test1 {
    public static void main(String[] args) {
        String s1 = "123";
        String s2 = "123";
        // 只要是new，就会创建一个新的地址
        String s3 = new String("123");
        System.out.println(s1==s2);
        System.out.println(s1==s3);
    }
}
